package com.soft.javase.day02.practice.personmarry;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class Test {
    public static void main(String[] args) {
        Person man1 = new Person("张三", 25, true);
        Person woman1 = new Person("小美", 23, false);
        Person man2 = new Person("李四", 26, true);
        Person woman2 = new Person("小红", 21, false);

        man1.marry(woman1);
        man2.marry(woman2);

    }
}
